<template>
  <el-footer height="397px">
    <div class="common-footer">
      <div class="icon-ul">
        <div class="icon-li" v-for="(item,index) in iconList" :key="index">
          <img :src="item.img" alt="">
          <span>{{ item.name }}</span>
          <i>{{ item.tips }}</i>
        </div>
      </div>
    </div>
  </el-footer>
</template>

<script>
export default {
  data() {
    return {
      iconList: [
        {
          img: require("../assets/img/icon-true.png"),
          name: "原厂灯装配",
          tips: "100%",
        },
        {
          img: require("../assets/img/icon-money.png"),
          name: "价格保证",
          tips: "",
        },
        {
          img: require("../assets/img/icon-car.png"),
          name: "免费送货",
          tips: "",
        },
        {
          img: require("../assets/img/icon-tool.png"),
          name: "保修服务",
          tips: "",
        },
      ],
    };
  },
};
</script>

<style lang="less">
.common-footer {
  width: 1400px;
  margin: 0 auto;
  .icon-ul {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    .icon-li {
      width: 120px;
      position: relative;
      img {
        width: 50px;
        height: 50px;
        display: flex;
      }
      span {
        color: #fff;
        font-size: 18px;
        position: absolute;
        left: 54px;
      }
      i {
        color: #fff;
        font-size: 13px;
        position: absolute;
        left: 54px;
      }
    }
  }
}
</style>